package com.lzkj.baotouhousingfund.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.DrawableRes;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.TextView;

import com.lzkj.baotouhousingfund.R;
import com.lzkj.baotouhousingfund.base.ToolbarActivity;
import com.lzkj.baotouhousingfund.presenter.RegisterPresenter;
import com.lzkj.baotouhousingfund.presenter.contract.RegisterContract;

import butterknife.BindView;

/**
 * @author lx
 * @description 注册页面
 * @date 2018-3-12 16:46:23
 */

public class RegisterActivity extends ToolbarActivity<RegisterPresenter> implements RegisterContract.View {


    @BindView(R.id.cb_have_read)
    CheckBox mCbHaveRead;
    @BindView(R.id.toolbar_right_img)
    ImageView mToolbarRightImg;

    @Override
    protected void initInject() {
        getActivityComponent().inject(this);
    }

    @Override
    protected int getLayout() {
        return R.layout.activity_register;
    }

    @Override
    protected void initEventAndData() {

    }

    public static void start(Context context) {
        Intent intent = new Intent(context, RegisterActivity.class);
        context.startActivity(intent);
    }

    @Override
    public void showError(String msg) {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mToolbarTitle.setText("注册");
        mToolbarRightImg.setVisibility(View.VISIBLE);
        mToolbarRightImg.setImageResource(R.mipmap.ic_home);
    }
}
